package com.guanzhi.mp.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.guanzhi.mp.bo.UserJsonBo;
import com.guanzhi.mp.constant.UserEnable;
import lombok.Data;

/**
 * Mybatis-Plus 练习
 * <p> Package: com.guanzhi.mp.po </p>
 * <p> File: UserPo.java </p>
 * <p> Description:  (用户 实体映射类)</p>
 * <p> Date: 2024/6/16 14:50</p>
 *
 * @author 观之
 * @version 1.0 （代码版本）
 * @email <a href="mailto:guanzhi55634@aliyun.com">观之</a>（邮箱）
 * @date 2024/6/16 14:50
 * @since jdk17（jdk版本）
 */
@Data
@TableName(value = "user",autoResultMap = true)
public class UserPo {

    private Long id;

    private String name;

    private String phone;

    private String email;

    @TableField("is_delete")
    private Integer isDelete;

    @TableField("is_enable")
    private UserEnable isEnable;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private UserJsonBo info;
}
